package com.example.hp.ormapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by hang on 2018/4/26 0026.
 */

public class CrmBean implements Parcelable {


    /**
     * total : 40
     * rows : [{"Front":"花纹板","Series":"1系","Alloy":"","Spec":"","State":"","Depot":"","Height":0,"Width":0,"Length":0,"Dosage":0,"ProcessingFee":0,"Remark":"3003/5052  鑫泰 3300/5200 出厂","CreationTime":"2018-04-25 15:19:09","UserId":5,"Id":"4e781c3b-65c3-4a7d-a1a7-3b7e1a094849"},{"Front":"铝板","Series":"1系","Alloy":"","Spec":"","State":"","Depot":"","Height":0,"Width":0,"Length":0,"Dosage":0,"ProcessingFee":0,"Remark":"6061 T651  （伍甲 7000，忠旺8500） 3tons 9.53*1220*3660   3tons 19.0*1220*3660 3tons 25.4*1220*3660  1100 F2800明泰出厂 MOQ:8TONS)3 tons 9.53*1220*3048  3 tons 19.0*1220*3660  Manzanillo （500 高柜） grivas@smtultitlan.com","CreationTime":"2018-04-25 15:05:45","UserId":5,"Id":"23333168-26b0-4d98-9371-ca5f2e1e988f"}]
     */

    private int total;
    private List<RowsBean> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean implements Parcelable {
        /**
         * Front : 花纹板
         * Series : 1系
         * Alloy :
         * Spec :
         * State :
         * Depot :
         * Height : 0
         * Width : 0
         * Length : 0
         * Dosage : 0
         * ProcessingFee : 0
         * Remark : 3003/5052  鑫泰 3300/5200 出厂
         * CreationTime : 2018-04-25 15:19:09
         * UserId : 5
         * Id : 4e781c3b-65c3-4a7d-a1a7-3b7e1a094849
         */

        private String Front;
        private String Series;
        private String Alloy;
        private String Spec;
        private String State;
        private String Depot;
        private float Height;
        private float Width;
        private int Length;
        private int Dosage;
        private int ProcessingFee;
        private String Remark;
        private String CreationTime;
        private int UserId;
        private String Id;

        public String getFront() {
            return Front;
        }

        public void setFront(String Front) {
            this.Front = Front;
        }

        public String getSeries() {
            return Series;
        }

        public void setSeries(String Series) {
            this.Series = Series;
        }

        public String getAlloy() {
            return Alloy;
        }

        public void setAlloy(String Alloy) {
            this.Alloy = Alloy;
        }

        public String getSpec() {
            return Spec;
        }

        public void setSpec(String Spec) {
            this.Spec = Spec;
        }

        public String getState() {
            return State;
        }

        public void setState(String State) {
            this.State = State;
        }

        public String getDepot() {
            return Depot;
        }

        public void setDepot(String Depot) {
            this.Depot = Depot;
        }

        public float getHeight() {
            return Height;
        }

        public void setHeight(int Height) {
            this.Height = Height;
        }

        public float getWidth() {
            return Width;
        }

        public void setWidth(int Width) {
            this.Width = Width;
        }

        public int getLength() {
            return Length;
        }

        public void setLength(int Length) {
            this.Length = Length;
        }

        public int getDosage() {
            return Dosage;
        }

        public void setDosage(int Dosage) {
            this.Dosage = Dosage;
        }

        public int getProcessingFee() {
            return ProcessingFee;
        }

        public void setProcessingFee(int ProcessingFee) {
            this.ProcessingFee = ProcessingFee;
        }

        public String getRemark() {
            return Remark;
        }

        public void setRemark(String Remark) {
            this.Remark = Remark;
        }

        public String getCreationTime() {
            return CreationTime;
        }

        public void setCreationTime(String CreationTime) {
            this.CreationTime = CreationTime;
        }

        public int getUserId() {
            return UserId;
        }

        public void setUserId(int UserId) {
            this.UserId = UserId;
        }

        public String getId() {
            return Id;
        }

        public void setId(String Id) {
            this.Id = Id;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.Front);
            dest.writeString(this.Series);
            dest.writeString(this.Alloy);
            dest.writeString(this.Spec);
            dest.writeString(this.State);
            dest.writeString(this.Depot);
            dest.writeFloat(this.Height);
            dest.writeFloat(this.Width);
            dest.writeInt(this.Length);
            dest.writeInt(this.Dosage);
            dest.writeInt(this.ProcessingFee);
            dest.writeString(this.Remark);
            dest.writeString(this.CreationTime);
            dest.writeInt(this.UserId);
            dest.writeString(this.Id);
        }

        public RowsBean() {
        }

        protected RowsBean(Parcel in) {
            this.Front = in.readString();
            this.Series = in.readString();
            this.Alloy = in.readString();
            this.Spec = in.readString();
            this.State = in.readString();
            this.Depot = in.readString();
            this.Height = in.readInt();
            this.Width = in.readInt();
            this.Length = in.readInt();
            this.Dosage = in.readInt();
            this.ProcessingFee = in.readInt();
            this.Remark = in.readString();
            this.CreationTime = in.readString();
            this.UserId = in.readInt();
            this.Id = in.readString();
        }

        public static final Creator<RowsBean> CREATOR = new Creator<RowsBean>() {
            @Override
            public RowsBean createFromParcel(Parcel source) {
                return new RowsBean(source);
            }

            @Override
            public RowsBean[] newArray(int size) {
                return new RowsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.total);
        dest.writeList(this.rows);
    }

    public CrmBean() {
    }

    protected CrmBean(Parcel in) {
        this.total = in.readInt();
        this.rows = new ArrayList<RowsBean>();
        in.readList(this.rows, RowsBean.class.getClassLoader());
    }

    public static final Creator<CrmBean> CREATOR = new Creator<CrmBean>() {
        @Override
        public CrmBean createFromParcel(Parcel source) {
            return new CrmBean(source);
        }

        @Override
        public CrmBean[] newArray(int size) {
            return new CrmBean[size];
        }
    };
}
